package com.ccz.demo.bookdemo.javayibubianchengshizhan.c2;

/**
 * @ClassName DoSomething
 * @Author caihaoyun
 * @Date 2020/5/27
 * @Version V1.0
 **/
public class DoSomething {

    public static void doSomethingA() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("--- doSomethingA---");
    }

    public static void doSomethingB() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("--- doSomethingB---");
    }

    public static String doSomethingC() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("--- doSomethingC---");
        return "C Task done!";
    }

    public static String doSomethingD() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("--- doSomethingD---");
        return "D Task done!";
    }

}
